// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   ATHandler_SonyEricsson.java

package cn.sendsms;

import java.io.IOException;

// Referenced classes of package cn.sendsms:
//			ATHandler, TimeoutException, GatewayException, ModemDriver, 
//			ModemGateway

class ATHandler_SonyEricsson extends ATHandler
{

	public ATHandler_SonyEricsson(ModemGateway gateway)
	{
		super(gateway);
	}

	boolean setIndications()
		throws TimeoutException, GatewayException, IOException, InterruptedException
	{
		modemDriver.write("AT+CNMI=2,1,0,1,0\r");
		modemDriver.getResponse();
		return modemDriver.isOk();
	}

	boolean setPduProtocol()
		throws TimeoutException, GatewayException, IOException, InterruptedException
	{
		modemDriver.write("AT+CMGF=0\r");
		return modemDriver.getResponse().indexOf("OK") >= 0;
	}
}
